<?php

class Core_Controller_Admincp_Plugin_Index extends Nuo_Controller_Admincp
{
	function execute($request)
	{
		Nuo::setVar('breadcrum', array(
			'title' => 'Manage Plugins',
			'toolbar' => 'admincp/core/plugin'
		));

		$table = Nuo::getTable('core/module');

		$select = $table -> select() -> order('is_core desc') -> order('sort_order');

		$items = $table -> fetchAll($select);

		return $this -> render(array('items' => $items));
	}

}
